/*
 * This file is part of aion-unique <aion-unique.org>.
 *
 *  aion-unique is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  aion-unique is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with aion-unique.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.aionengine.gameserver.model.templates.item;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;

/**
 * @author ATracer
 */
@XmlType(name = "quality")
@XmlEnum
public enum ItemQuality {
    // TODO: Reorder and rename - requires ATracer parser update (?)

    JUNK(0),    // Junk - Gray
    COMMON(1),    // Common - White
    RARE(2),    // Superior - Green
    LEGEND(3),    // Heroic - Blue
    UNIQUE(4),    // Fabled - Yellow
    EPIC(5),    // Eternal - Orange
    MYTHIC(6);    // Test - Purple

    private int qualityId;

    /**
     * Constructors
     */
    private ItemQuality(int qualityId) {
        this.qualityId = qualityId;
    }

    /**
     * Accessors
     */
    public int getQualityId() {
        return qualityId;
    }

}